package org.smart;

import java.sql.Timestamp;

public class Environment {
    private String srcId;          // 发送端id
    private String desId;          // 树莓派系统id
    private String devId;          // 实验箱区域模块id
    private String sensorAddress;  // 传感器地址
    private int count;             // 传感器个数
    private String cmd;            // 发送指令标号
    private int status;            // 状态
    private Timestamp gatherDate;  // 采集时间
    private String name;           // 环境名称（温度、湿度等）
    private float data;            // 环境值

    // getter和setter方法
    public String getSrcId() {
        return srcId;
    }

    public void setSrcId(String srcId) {
        this.srcId = srcId;
    }

    public String getDesId() {
        return desId;
    }

    public void setDesId(String desId) {
        this.desId = desId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getSensorAddress() {
        return sensorAddress;
    }

    public void setSensorAddress(String sensorAddress) {
        this.sensorAddress = sensorAddress;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getGatherDate() {
        return gatherDate;
    }

    public void setGatherDate(Timestamp gatherDate) {
        this.gatherDate = gatherDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getData() {
        return data;
    }

    public void setData(float data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Environment{" +
                "srcId='" + srcId + '\'' +
                ", desId='" + desId + '\'' +
                ", devId='" + devId + '\'' +
                ", sensorAddress='" + sensorAddress + '\'' +
                ", count=" + count +
                ", cmd='" + cmd + '\'' +
                ", status=" + status +
                ", gatherDate=" + gatherDate +
                ", name='" + name + '\'' +
                ", data=" + data +
                '}';
    }
}
